﻿using System;
using System.Collections.Generic;
using System.Text;
namespace vnFingerPrint.BusinessObject
{

    public class Config_Object
    {
        public string ConfigName { get; set; }//Primary Key
        public string ConfigValue { get; set; }
        public Config_Object Self { get { return this; } }
    }

    public class CongDan_Object
    {
        public string HoTen { get; set; }
        public DateTime? NgaySinh { get; set; }
        public string GioiTinh { get; set; }
        public string SoCMND { get; set; }//Primary Key
        public string SoHoChieu { get; set; }
        public DateTime? NgayCap { get; set; }
        public string NoiCap { get; set; }
        public int? Id_TinhThanh { get; set; }//Foreign Key
        public int? Id_QuanHuyen { get; set; }//Foreign Key
        public string PhuongXa { get; set; }
        public string DiaChi { get; set; }
        public string GhiChu { get; set; }
        public string ImageUrl { get; set; }
        public CongDan_Object Self { get { return this; } }
        
    }

    public class dmQuanHuyen_Object
    {
        public int Id { get; set; }//Primary Key
        public string TenQuanHuyen { get; set; }
        public int? Id_TinhThanh { get; set; }//Foreign Key
        public dmQuanHuyen_Object Self { get { return this; } }
    }

    public class dmTinhThanh_Object
    {
        public int Id { get; set; }//Primary Key
        public string TenTinhThanh { get; set; }
        public dmTinhThanh_Object Self { get { return this; } }
    }

    public class sysdiagrams_Object
    {
        public string name { get; set; }
        public int principal_id { get; set; }
        public int diagram_id { get; set; }//Primary Key
        public int? version { get; set; }
        public object definition { get; set; }
        public sysdiagrams_Object Self { get { return this; } }
    }

    public class Users_Object
    {
        public string UserName { get; set; }//Primary Key
        public string Password { get; set; }
        public string Email { get; set; }
        public string MobilePhone { get; set; }
        public string ImageUrl { get; set; }
        public string FullName { get; set; }
        public string ChucVu { get; set; }
        public string DonViCongTac { get; set; }
        public DateTime? Birthday { get; set; }
        public Users_Object Self { get { return this; } }
        public int PermissionId { get; set; }
    }

    public class VanTay_Object
    {
        public long Id { get; set; }//Primary Key
        public string So_CMND { get; set; }//Foreign Key
        public string DacTrung { get; set; }
        public string CoreDelta { get; set; }
        public string ImgUrl { get; set; }
        public string LoaiNgon { get; set; }
        public VanTay_Object Self { get { return this; } }
    }
    public class Permission_Object
    {
        public int Id { get; set; }//Primary Key
        public string Name { get; set; }
        public string Role { get; set; }
    }
}